function collect_same_elements(collection_a, object_b) {
  //在这里写入代码
  let arr = object_b.value;
  return collection_a.filter(function(i){
    return arr.indexOf(i)!==-1;
  });
}

module.exports = collect_same_elements;
